package com.usian.behavior.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient("leadnews-behavior")
public interface BehaviorFeign {

    /**
     * 查询 用户行为信息
     * 包含  点赞行为  不喜欢行为
     * @param userId
     * @param equipmentId
     * @param articleId
     * @param
     * @return  {"islike":true,"isunlike":true}
     */
    @GetMapping("/api/v1/behavior/findBehavior")
    public Map<String,Boolean> findBehavior(@RequestParam(name = "userId") Integer userId,
                                            @RequestParam(name = "equipmentId") String equipmentId,
                                            @RequestParam(name = "articleId") Long articleId,
                                            @RequestParam(name = "type") Integer type);
}
